/**
 * File Info：com.mys.springboot.config.base.BaseResult.java
 * Created Date：2017年5月15日 下午2:55:27
 * Created User: mys
 */
package com.mys.springboot.config.base;

/**
 * @description
 * 
 * @author mys
 * @version 1.0
 *
 */
public class BaseResult {
	private String title = "系统提示";
	private String message = "操作成功";
	private int status = 200;
	private Object data;

	public static BaseResult success() {
		return new BaseResult();
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public BaseResult setTitle(String title) {
		this.title = title;
		return this;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public BaseResult setMessage(String message) {
		this.message = message;
		return this;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public BaseResult setStatus(int status) {
		this.status = status;
		return this;
	}

	/**
	 * @return the data
	 */
	public Object getData() {
		return data;
	}

	/**
	 * @param data
	 *            the data to set
	 */
	public BaseResult setData(Object data) {
		this.data = data;
		return this;
	}

}
